import BasicLayout from './../layout/BasicLayout.vue'
const RouteView = {
  name: 'RouteView',
  render: h => h('router-view')
}
export default [
  {
    path: '/',
    redirect: '/auth'
  },
  {
    path: '/aaa',
    component: BasicLayout,
    redirect: '/workbench/workbenchPage',
    children: [
      {
        path: '/workbench',
        name: 'workbench',
        redirect: '/workbench/workbenchPage',
        component: { render: (h) => h('router-view') },
        meta: { title: '首页', icon: 'home' },
        rootMenu: false,
        children: [
          {
            path: '/workbench/workbenchPage',
            name: 'workbenchPage',
            component: () => import('./../views/workbench/index.vue'),
      
            meta: { title: '工作台', icon: 'user' }
          },
          {
            path: '/workbench/gateway',
            name: 'gateway',
            // component: () => import('./../views/workbench/index.vue'),
            
            meta: { title: '项目概览', icon: 'user' }
          },
          {
            path: '/workbench/contractList',
            name: 'contractList',
            component: () => import('./../views/workbench/contractList.vue'),
            hiddenMenu: true,
            meta: { title: '合同未登记列表', icon: 'user' }
          },
          {
            path: '/workbench/bankCardList',
            name: 'bankCardList',
            component: () => import('./../views/workbench/bankCardList.vue'),
            hiddenMenu: true,
            meta: { title: '银行卡未登记列表', icon: 'user' }
          },
        ]
      },
      {
        path: '/manageFile',
        name: 'manageFilePage',
        redirect: '/manageFile/manageFilePage',
        component: () => import('@/views/manageFile'),
        meta: { title: '管理文件', icon: 'file-text' },
        rootMenu: true,
        children: [
          {
            path: '/manageFile/manageFilePage',
            name: 'manageFile',
            component: () => import('@/views/manageFile'),
            // hiddenMenu: true,
            meta: { title: '管理文件', icon: 'form' },
          }]
      },
      {
        path: '/realNameManage',
        name: 'realNameManage',
        redirect: '/realNameManage/manager',
        component: { render: (h) => h('router-view') },
        meta: { title: '实名制管理', icon: 'idcard' },
        rootMenu: false,
        children: [
          {
            path: '/realNameManage/manager',
            name: 'manager',
            component: () => import('./../views/realNameManage/manager'),
            meta: { title: '管理人员', icon: 'user' }
          },
          {
            path: '/realNameManage/laborPerson',
            name: 'laborPerson',
            component: () => import('./../views/realNameManage/laborPerson'),
            meta: { title: '劳务人员', icon: 'user' }
          },
          {
            path: '/realNameManage/laborUnitManage',
            name: 'laborUnitManage',
            component: () => import('./../views/realNameManage/laborUnitManage'),
            meta: { title: '分包单位管理', icon: 'user' }
          },
          {
            path: '/realNameManage/companyInfo',
            name: 'companyInfo',
            component: () => import('./../views/migrantWages/companyInfo'),
            meta: { title: '单位信息管理', icon: 'user' }
          },
          // {
          //   path: '/realNameManage/manager/unitInfoDetail',
          //   name: 'unitInfoDetail',
          //   component: () => import('./../views/realNameManage/manager/unitInfoDetail.vue'),
          //   hiddenMenu: true,
          //   meta: { title: '单位信息详情', icon: 'user' }
          // },
        ]
      },
      {
        path: '/attendanceManage',
        name: 'attendanceManage',
        redirect: '/attendanceManage/personAttendance',
        component: { render: (h) => h('router-view') },
        meta: { title: '考勤管理', icon: 'schedule' },
        rootMenu: false,
        children: [
          {
            path: '/attendanceManage/personAttendance',
            name: 'personAttendance',
            component: () => import('./../views/attendanceManage/personAttendance'),
            meta: { title: '管理人员考勤', icon: 'user' }
          },
          {
            path: '/attendanceManage/laborPersonAttendance',
            name: 'laborPersonAttendance',
            component: () => import('./../views/attendanceManage/laborPerson'),
            meta: { title: '劳务人员考勤', icon: 'user' }
          }
        ]
      },
      {
        path: '/migrantWages',
        name: 'wagePaymentRecord',
        redirect: '/migrantWages/wagePaymentRecord',
        component: { render: (h) => h('router-view') },
        meta: { title: '工资支付记录', icon: 'money-collect' },
        rootMenu: true,
        children: [
          {
            path:'/migrantWages/wagePaymentRecord',
            name: 'Wages',
            component: () => import('@/views/migrantWages/wagePaymentRecord'),
            // hiddenMenu: true,
            meta: { title: '工资支付记录', icon: 'money-collect' },
          },
          {
            path: '/migrantWages/unitAccount',
            name: 'WagesDetail',
            component: () => import('./../views/migrantWages/wagePaymentRecord/unitAccount.vue'),
            hiddenMenu: true,
            meta: { title: '单位台账', icon: 'user' }
          },

          {
            path: '/migrantWages/teamPayroll',
            name: 'detail—detail',
            component: () => import('./../views/migrantWages/wagePaymentRecord/teamPayroll.vue'),
            hiddenMenu: true,
            meta: { title: '班组工资单', icon: 'user' }
          }
        ]
      },
      {
        path: '/assRecord',
        name: 'assessmentRecordPage',
        redirect: '/assRecord/assessmentRecordPage',
        component: () => import('@/views/migrantWages/assessmentRecord'),
        meta: { title: '考核记录', icon: 'file-protect' },
        rootMenu: true,
        children: [
          {
            path: '/assRecord/assessmentRecordPage',
            name: 'assessment',
            component: () => import('@/views/migrantWages/assessmentRecord'),
            // hiddenMenu: true,
            meta: { title: '考核记录', icon: 'file-protect' },
          }]
      },
      {
        path: '/insRecord',
        name: 'inspectionRecord',
        redirect: '/insRecord/inspectionRecord',
        component: () => import('@/views/migrantWages/inspectionRecord'),
        meta: { title: '检查记录', icon: 'file-search' },
        rootMenu: true,
        children: [
          {
            path: '/insRecord/inspectionRecord',
            name: 'inspection',
            component: () => import('@/views/migrantWages/inspectionRecord'),
            // hiddenMenu: true,
            meta: { title: '检查记录', icon: 'form' },
          }]
      },
      {
        path: '/protectionInfo',
        name: 'protectionInfo',
        redirect: '/protectionInfo/protectionInfo',
        component: () => import('@/views/migrantWages/protectionInfo'),
        meta: { title: '维权信息告示牌', icon: 'picture' },
        rootMenu: true,
        children: [
          {
            path: '/protectionInfo/protectionInfo',
            name: 'protection',
            component: () => import('@/views/migrantWages/protectionInfo'),
            // hiddenMenu: true,
            meta: { title: '维权信息告示牌', icon: 'form' },
          }]
      },
    
      // {
      //   path: '/migrantWages',
      //   name: 'migrantWages',
      //   redirect: '/migrantWages/inspectionRecord',
      //   component: { render: (h) => h('router-view') },
      //   meta: { title: '农民工工资', icon: 'account-book' },
      //   rootMenu: false,
      //   children: [
          
      //     // {
      //     //   path: '/migrantWages/manageFile',
      //     //   name: 'manageFile',
      //     //   // component: Home,
      //     //   meta: { title: '管理文件', icon: 'form' },
      //     //   component: () => import('@/views/manageFile')
      //     // },
      //     {
      //       path: '/migrantWages/wagePaymentRecord',
      //       name: 'wagePaymentRecord',
      //       // component: Home,
      //       meta: { title: '工资支付记录', icon: 'form' },
      //       component: () => import('@/views/migrantWages/wagePaymentRecord')
      //     },
      //     // {
      //     //   path: '/migrantWages/inspectionRecord',
      //     //   name: 'inspectionRecord',
      //     //   // component: Home,
      //     //   meta: { title: '检查记录', icon: 'form' },
      //     //   component: () => import('@/views/migrantWages/inspectionRecord')
      //     // },
      //     // {
      //     //   path: '/migrantWages/assessmentRecord',
      //     //   name: 'assessmentRecord',
      //     //   // component: Home,
      //     //   meta: { title: '考核记录', icon: 'form' },
      //     //   component: () => import('@/views/migrantWages/assessmentRecord')
      //     // },
      //     // {
      //     //   path: '/migrantWages/protectionInfo',
      //     //   name: 'protectionInfo',
      //     //   // component: Home,
      //     //   meta: { title: '维权信息告示牌', icon: 'form' },
      //     //   component: () => import('@/views/migrantWages/protectionInfo')
      //     // },

      //     {
      //       path: '/migrantWages/unitAccount',
      //       name: 'detail',
      //       component: () => import('./../views/migrantWages/wagePaymentRecord/unitAccount.vue'),
      //       hiddenMenu: true,
      //       meta: { title: '单位台账', icon: 'user' }
      //     },

      //     {
      //       path: '/migrantWages/teamPayroll',
      //       name: 'detail—detail',
      //       component: () => import('./../views/migrantWages/wagePaymentRecord/teamPayroll.vue'),
      //       hiddenMenu: true,
      //       meta: { title: '班组工资单', icon: 'user' }
      //     }

      //   ]
      // },
      {
        path: '/measurementManage',
        name: 'measurementManagePage',
        redirect: '/measurementManage/measurementManagePage',
        component: () => import('@/views/measurementManage'),
        meta:{ title: '计量管理', icon: 'fund' },
        rootMenu: true,
        children: [
          {
            path: '/measurementManage/measurementManagePage',
            name: 'measurementManage',
            component: () => import('@/views/measurementManage'),
            // hiddenMenu: true,
            meta: { title: '计量管理', icon: 'setting' },
          }]
      },
     
      {
        path: '/backManage',
        name: 'backManage',
        redirect: '/backManage/projectManage',
        component: { render: (h) => h('router-view') },
        meta: { title: '后台管理', icon: 'setting' },
        rootMenu: false,
        children: [
          {
            path: '/backManage/projectManage',
            name: 'projectManage',
            component: () => import('./../views/backManage/projectManage'),
            meta: { title: '项目管理', icon: 'user' }
          },
          {
            path: '/backManage/projectUserManage',
            name: 'projectUserManage',
            component: () => import('./../views/backManage/projectUserManage'),
            meta: { title: '项目用户管理', icon: 'user' }
          },
          {
            path: '/backManage/rolePermission',
            name: 'rolePermission',
            component: () => import('./../views/backManage/rolePermission'),
            meta: { title: '角色权限配置', icon: 'user' }
          }
        ]
      }
     
      // {
      //   path: '/constructionUnit',
      //   name: 'constructionUnit',
      //   redirect: '/constructionUnit/participatingUnits',
      //   component: { render: (h) => h('router-view') },
      //   meta: { title: "基本信息管理", icon: "profile" },
      //   children: [
      //     {
      //       path: '/constructionUnit/companyInfo',
      //       name: 'companyInfo',
      //       component: () => import('./../views/constructionUnit/companyInfo'),
      //       meta: { title: "单位信息", icon: "user" }
      //     },
      //     {
      //       path: '/constructionUnit/participatingUnits',
      //       name: 'participatingUnits',
      //       component: () => import('./../views/constructionUnit/participatingUnits'),
      //       meta: { title: "参建单位管理", icon: "user" }
      //     },
      //     {
      //       path: '/constructionUnit/detail',
      //       name: 'detail',
      //       component: () => import('./../views/constructionUnit/participatingUnits/detail.vue'),
      //       hiddenMenu:true,
      //       meta: { title: "参建单位管理详情", icon: "user" }
      //     },
      //   ]}
    ]
  },
  {
    path: '/login',
    component: () => import('@/views/login/index')
  },
  {
    path: '/gateway',
    name: 'gateway',
    component: () => import('../views/home/homeNew.vue')
  },
  {
    path: '/detail',
    name: 'detail',
    component: () => import(/* webpackChunkName: "about" */ '../views/detail')
  },
  {
    path: '/list',
    name: 'list',
    component: () => import(/* webpackChunkName: "about" */ '../views/list')
  },
  {
    path: '/projectDetails',
    name: 'projectDetails',
    // component: () => import(/* webpackChunkName: "about" */ '../views/projectDetails')
    component: () => import('@/views/home/projectDataCenter/index.vue')
  },
  {
    path: '/fu',
    component: RouteView,
    name: '施工',
    meta: { title: '施工父' },
    children: [
      {
        path: 'construction',
        name: 'construction',
        component: () => import('../views/construction/index2.vue'),
        meta: { title: '施工' }
      }
    ]
  },
  {
    path: '/laborUnit',
    name: 'laborUnit',
    component: () => import('../views/laborUnit/index.vue')
  },
  {
    path: '/laborUnitBack',
    name: 'laborUnitBack',
    component: () => import('../views/laborUnit/laborUnitBack.vue')
  },
  {
    path: '/laborCenter',
    name: 'laborCenter',
    component: () => import('../views/home/laborCenter/index.vue')
  },
  {
    path: '/teamGroup',
    name: 'teamGroup',
    component: () => import('../views/teamGroup/index2.vue')
  },
  {
    path: '/teamGroupBack',
    name: 'teamGroupBack',
    component: () => import('../views/teamGroup/indexBack.vue')
  },
  //门户劳务人员详情
  {
    path: '/personnelInformation',
    name: 'personnelInformation',
    component: () => import(/* webpackChunkName: "personnelInformation" */ '../views/teamInformation/personnelInformation')
  },
  //门户劳资专管员人员详情
  {
    path: '/personnelInformation2',
    name: 'personnelInformation2',
    component: () => import(/* webpackChunkName: "personLaborInfo" */ '../views/teamInformation/personLaborInfo')
  },
  //后台劳资专管员人员详情
  {
    path: '/personnelInformationManage/:id',
    name: 'personnelInformationManage',
    component: () => import(/* webpackChunkName: "managerInfoDetail2" */ '../views/realNameManage/manager/managerInfoDetail2')
  },
  //后台劳务人员详情
  {
    path: '/personnelInformationLabor/:id',
    name: 'personnelInformationLabor',
    component: () => import(/* webpackChunkName: "laborDetail" */'../views/realNameManage/laborPerson/laborDetail')
  },
  {
    path: '/salaryInformation',
    name: 'salaryInformation',
    component: () => import(/* webpackChunkName: "about" */ '../views/teamInformation/salaryInformation')
  },
  {
    path: '/salaryInformation2',
    name: 'salaryInformation2',
    component: () => import(/* webpackChunkName: "about" */ '../views/realNameManage/manager/salaryInfo')
  },
  {
    path: '/policiesAndRegulations/list',
    name: '政策法规列表页',
    component: () => import(/* webpackChunkName: "about" */ '../views/policiesAndRegulations/list')
  },
  {
    path: '/policiesAndRegulations/detail',
    name: '政策法规详情页',
    component: () => import(/* webpackChunkName: "about" */ '../views/policiesAndRegulations/detail')
  },
  {
    path: '/educationAndTraining/list',
    name: '教育培训列表页',
    component: () => import(/* webpackChunkName: "about" */ '../views/educationAndTraining/list')
  },
  {
    path: '/educationAndTraining/detail',
    name: '教育培训详情页',
    component: () => import(/* webpackChunkName: "about" */ '../views/educationAndTraining/detail')
  },
  {
    path: '/complaint/list',
    name: '投诉维权列表页',
    component: () => import(/* webpackChunkName: "about" */ '../views/complaint/list')
  },
  {
    path: '/complaint/detail',
    name: '投诉维权详情页',
    component: () => import(/* webpackChunkName: "about" */ '../views/complaint/detail')
  },
  {
    path: '/login',
    component: () => import('@/views/login/index')
  },
  {
    path: '/auth',
    component: () => import('@/views/login/auth')
  },
  {
    path: '/pdf',
    component: () => import('@/views/pdf/index')
  },
  // {
  //   path: '/projectDataCenter/realNameManage',
  //   component: () => import('@/views/home/projectDataCenter/realNameManage/index.vue')
  // }
  // ,
  // {
  //   path: '/projectDataCenter/wagePay',
  //   component: () => import('@/views/home/projectDataCenter/wagePay/index.vue')
  // },
  {
    path: '/projectDataCenter/home/:projectId',
    component: () => import('@/views/home/projectDataCenter/index.vue')
  }
]
